<template>
  <div style="line-height: 34px !important;">
    <el-button type="primary" title="查看" circle size="mini" @click.stop="viewHandle">
      <span class="el-icon-edit"></span>
    </el-button>
    <el-button type="danger" title="删除" circle size="mini" @click.stop="delHandle">
      <span class="el-icon-delete"></span>
    </el-button>
  </div>
</template>
<script>
import Vue from 'vue'
export default Vue.extend({
  // props: ["flag"],
  data () {
    return {}
  },
  methods: {
    viewHandle () {
      this.params.context.componentParent.viewHandle(this.params.data)
    },
    delHandle () {
      this.params.context.componentParent.delHandle(this.params.data)
    }
  }
})
</script>
